<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
 <body>
      
      <ui:composition template="./../../Template/generalTemplate.xhtml">
          
          <ui:define name="content">
             <f:view beforePhase="#{createNewResultManagedBean.initView}"> 
             <p:panel id="newCompany" header="Create New Company" style="height:495px;">
               <div style="margin-top:60px;margin-left:250px;">
                <h:form>
                <h:panelGrid id="resultGrid" columns="2">


                        <h:outputText value="Company Name:" style="font-weight: bold;"/>  
                        <h:outputText value="#{createNewResultManagedBean.company.name}" />
                        <h:outputText value="Company Address" style="font-weight: bold;"/>  
                        <h:outputText value="#{createNewResultManagedBean.address}" />
                        <h:outputText value="Company Email" style="font-weight: bold;"/>  
                        <h:outputText value="#{createNewResultManagedBean.company.email}" />
                        <h:outputText value="Contact Person:" style="font-weight: bold;"/>  
                        <h:outputText value="#{createNewResultManagedBean.contact}" />
                        <h:outputText value="Contact Number" style="font-weight: bold;"/>  
                        <h:outputText value="#{createNewResultManagedBean.company.contactNumber}" />
                        <h:outputText value="Company Type" style="font-weight: bold;"/>  
                        <h:outputText value="#{createNewResultManagedBean.company.companyType}" />
                        <h:outputText value="Company Status" style="font-weight: bold;"/>  
                        <h:outputText value="#{createNewResultManagedBean.company.companyStatus}" />

                  </h:panelGrid>
                  <br />
                  <p:commandButton value="Go Back"  ajax="false"  update="grid" actionListener="#{createNewResultManagedBean.goBack}" />
                </h:form>
               </div>
             </p:panel>
            </f:view>  
          </ui:define>
          
          <ui:define name="bottom">
                <div id="msgbox" class="round">
                    <h:outputText value="#{createNewResultManagedBean.message}" />
                </div>
          </ui:define>
        
      </ui:composition>
    
  </body>
</html>